package org.linloong.modules.apis.monitor.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@Schema(name = "柱状图json数据")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class BarEchartsDataDTO {

    private String type;

    private String unit;

    private String year;

    private List<BarData> data;

    @Data
    @AllArgsConstructor
    public static class BarData {
        private String month;
        private String value;
    }

}
